﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace testemployeemvc.Controllers
{
    public class WebController : Controller
    {
        //
        // GET: /Web/

        public ActionResult Index(AboutModel about)
        {
            ServiceWebClient.WebServiceTest servicio = new ServiceWebClient.WebServiceTest();
            string c = about.valorstring;
            ViewData["Message"] = servicio.getPregunta(c);
            return View();
        }

        [HttpPost]
        public ActionResult About(AboutModel about)
        {

            ServiceWebClient.WebServiceTest servicio = new ServiceWebClient.WebServiceTest();
            string c = about.valorstring;
            ViewData["Message"] = servicio.getPregunta(c);
            return View();
        }

    }
}
